@if(count($userPosts)>0)
    <section>
        <ul class="list-group">
            @foreach($userPosts as $post)
                @include('posts._post')
            @endforeach

        </ul>
        <div class="mt-2 d-flex justify-content-end">{!! $userPosts->render() !!}</div>
    </section>
@else
    <div class="text-danger text-center">没有文章</div>
@endif
